<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method='html' indent='yes'/>	

	<xsl:template match="/">
		
		<h1>MyFeed community submissions</h1>
		
		<div class="access_help">
		  <a href="#most_popular_feed">Jump to most popular feeds in this page</a> | 
		  <a href="#most_recent_feed">Jump to most recent feeds in this page</a> | 
		  <a href="#header">Jump to top in this page</a>
		</div>
		
		<div id="most_popular_feed">
			<h2><a href="./xml/feedindex.xml">Popular feeds</a></h2>
			<ol  class="feed_post_list_index">
				<xsl:for-each select="feedindex/most[@id='most_popular_feed']/feed">
					<li>
						<h4><xsl:value-of select="name"/></h4>
						<p>With <xsl:value-of select = "last"/> Subscribers</p>
							<a>
								<xsl:attribute name="href">
									<xsl:value-of select = "link"/>
								</xsl:attribute>
								Visit original feed
							</a>
					</li>					
				</xsl:for-each>
			</ol>		
			<!-- ACCESSIBILITY HELP -->
			<div class="access_help"> 
  				<a href="#feed_result">Jump to top of community subscriptions in this page</a>
			</div>
			<!-- END ACCESSIBILITY HELP -->	
		</div>

		<div id="most_recent_feed">
		  	<h2><a href="./xml/feedindex.xml">Recent feeds</a></h2>
				<ol  class="feed_post_list_index">
				<xsl:for-each select="feedindex/most[@id='most_recent_feed']/feed">
					<li>
						<h4><xsl:value-of select="name"/></h4>
						<p>Subscribed <xsl:value-of select = "last"/></p>
							<a>
								<xsl:attribute name="href">
									<xsl:value-of select = "link"/>
								</xsl:attribute>
								Visit original feed
							</a>
					</li>					
				</xsl:for-each>
			</ol>		
			<!-- ACCESSIBILITY HELP -->
			<div class="access_help"> 
  				<a href="#feed_result">Jump to top of community subscriptions in this page</a>
			</div>
			<!-- END ACCESSIBILITY HELP -->		
		</div>
		
	</xsl:template>

</xsl:stylesheet>
